package com.java0107;

import java.util.ArrayList;
import java.util.List;

public class ArrayList01 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();

        list.add("a");
        list.add("b");
        list.add("c");

        for(String s:list){
            System.out.println(s);
        }

        list.forEach((x)->{
            System.out.println(x);
        });
    }
}
